﻿using System.Collections.Generic;
using System.Data;

namespace BLL.Topo
{
    /// <summary>
    /// 业务逻辑类SUBSYS_LOGIN 的摘要说明。
    /// </summary>
    public class CHANNEL
    {
        private readonly OracleDal.Topo.CHANNEL dal = new OracleDal.Topo.CHANNEL();
        public CHANNEL()
        {

        }
        #region 成员方法
        public List<Model.Topo.CHANNEL> GetModelList(string NEID)
        {
            return dal.GetModelList(NEID);
        }
        /// <summary>
        /// 获取基站信道占用列表
        /// </summary>
        /// <param name="NEID">基站ID</param>
        ///  <param name="DXT">交换机ID</param>
        /// <returns></returns>
        public DataSet GetMainChanelList(string NEID, string DXT)
        {
            return dal.GetMainChanelList(NEID, DXT);
        }
        /// <summary>
        /// 获取基站信道上行占用率排行表
        /// </summary>
        /// <param name="TOP">获取TOP数量</param>
        /// <param name="strWhere">查询条件(一般为列表)</param>
        /// <returns></returns>
        public DataSet GetMainChanelUplinkList(string TOP, string strWhere)
        {
            return dal.GetMainChanelUplinkList(TOP, strWhere);
        }
        /// <summary>
        /// 获取基站信道下行占用率排行表
        /// </summary>
        /// <param name="TOP">获取TOP数量</param>
        /// <param name="strWhere">查询条件(一般为NEID列表)</param>
        /// <returns></returns>
        public DataSet GetMainChanelDownlinkList(string TOP, string strWhere)
        {
            return dal.GetMainChanelDownlinkList(TOP, strWhere);
        }
        /// <summary>
        /// 获取基站信道占用率时刻表
        /// </summary>
        /// <param name="TOP">取排行数量</param>
        /// <param name="NEID">基站ID</param>
        /// <returns></returns>
        public DataSet GetMainChanelLinkList(string TOP, string NEID)
        {
            return dal.GetMainChanelLinkList(TOP, NEID);
        }
        /// <summary>
        /// 获取基站信道占用百分比
        /// </summary>
        /// <param name="TOP">排行TOP</param>
        /// <returns></returns>
        public DataSet GetChannelLink(string TOP)
        {
            string[,] str = new string[4, 2] { { "p_neid", "string" }, { "p_strwhere", "string" }, { "p_sort", "string" }, { "p_topcount", "int" } };
            string[] v = new string[] { "", "", "reservQuotiety+0 desc,rxlev", TOP };
            return new OracleDAL.Common.mysqldata().GetList("GET_ALL_TBS_RATE", str, v);
        }
        #endregion
    }
}
